
document.querySelector('div').addEventListener('click', function () {
    document.querySelector('div').classList.add('active')
    alert('你好呀')
})


const lyw = document.querySelector('.lyw')
lyw.addEventListener('click', function () {
    alert('w')
})

const yel = document.querySelector('.yellow')

yel.addEventListener('click', function () {
    alert('dmy')
    this.style.backgroundColor = 'skyblue'

})


const mgh = document.querySelector('.mgh')

mgh.addEventListener('click', function () {
    alert('马国豪')

})

const lfy = document.querySelector('.lfy')
lfy.addEventListener('click', function () {

    this.style.backgroundColor = 'pink'
    this.innerHTML = '鹅姐在此'
})